import request from '@/utils/request'
import { CURDApiBase } from '../curd-api-base'

export default new class InventoryApi extends CURDApiBase {
  constructor () {
    super('/wms-warehouse/api/inventory')
  }

  /** 导入质检报告 */
  upload(data?: any) {
    return request({
      headers: {
        'content-Type': 'multipart/form-data'
      },
      url: `${this.baseUrl}/imports`,
      method: 'post',
      data
    })
  }
}()